from django.contrib import admin

# Register your models here.
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from management.models import *

class MyUserInline(admin.StackedInline):
	model = MyUser
	can_delete = False

class UserAdmin(BaseUserAdmin):
    inlines = (MyUserInline,)

admin.site.unregister(User)
admin.site.register(User, UserAdmin)
admin.site.register(Book)
admin.site.register(Img)